Java Program to Compute all the permutations of the string | Vultr Docs