Given an integer array nums , return true if any value appears at least twice in the array, and false if every element is distinct. Input format Each example's input is the argument list as JSON — here a single array, e.g. [[1,2,3,1]] .