Wrote a program to find the permutaion of a given number