The method noMatch whose heading is:
public static boolean noMatch(Queue <integer> q)
Takes a queue of items 'q' and returns true if and only if all the elements contained in q are all different, and false otherwise.
IF Q contains: 1,2,3,4,5,6,7. THEN noMatch returns true.
IF Q contains:1,2,3,4,5,6,7,7,7 THEN noMatch returns false.
How can this be implemented successfully?