Adobe Interview Question

Print permutations of a string