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