how do I modify this java code so it doesn’t show thepermetations that contain the same letter for example so “aa” isnot allowed since “a” was already used.
class problem2 {
static int count = 1;
// The method that prints all
// possible strings of length k.
// It is mainly a wrapper over
// recursive function printAllKLengthRec()
static void printAllKLength(char[] set, int k){
int n = set.length;
printAllKLengthRec(set, “”, n,k);
}
// The main recursive method
// to print all possible
// strings of length k
static void printAllKLengthRec(char[] set, Stringprefix, int n, int k) {
PayPal Gateway not configured
PayPal Gateway not configured