create a Set to store all the guess, use do-while loop to add new guess until we can't add into the Set.
// initialize the variable for guess;
do{
//new guess;
} while(! set.add(new guess));