Gapplet
Given a permutation, its order is determined.
Input a permutation,
e.g., [2,1,4,5,3]
Its order is