Java Program to find all Permutations of a String