Given an integer array nums, return true if any value appears at least twice, and false if every element is distinct.
Input: one line of space-separated integers.
Output: true or false.
1 2 3 1
true
1 appears twice.
1 2 3 4
false
All distinct.
Run your code against the sample tests, or Submit to run the full suite.