I\'m trying to find permutation of a given string, but I want to use iteration. The recursive solution I found online and I do understand it, but converting it to an iterati
package vishal villa; import java.util.Scanner; public class Permutation { static void result( String st, String ans) { if(st.length() == 0) System.out.println(ans +" "); for(int i = 0; i