Persistent Systems Interview Question

programming question to print permutations of a number.