This same website has a solution for the permutation of a string. <a href="http://www.mytechinterviews.com/permutations-of-a-string" rel="nofollow">http://www.mytechinterviews.com/permutations-of-a-string</a>