I already passed the task but can't fully understand the "right solution". In the conditions it states : All generated passwords must be unique. I ensured this condition by just adding all generated passwords to a list and checking for the newly generated password like this:
while(noNumeral || noUppercase || noLowercase || notUnique){
             //more code
            String uniqueCheck =  new String(byteArray);
                notUnique = false;
             //more code
How did the code in the "right solution" checked for duplicates? I can't find it or don't understand. Thanks in advance.