Given an integer array , return if any value appears at least twice in the array. Return if every element is distinct.
This problem has multiple solutions with different time complexities. Comparing them will reinforce your understanding of Big O analysis.