Recursive algorithm to permute string