/* This is the solution to the second question*/ public class permstring{ public static void generate(char[] A,int k,int L,char[] B) { int i; if(L==0) { for(i=0;i