nums, report whether any number shows up more than once. Return true when a repeat exists, and false when every value is distinct.Set turns "have I seen this value already?" from a scan into an instant check, which changes the whole shape of this problem.nums, report whether any number shows up more than once. Return true when a repeat exists, and false when every value is distinct.// Run your code to see the output here.