give integer array num return true value appear twice array return false element distinct Example 1input num 1231output trueExample 2input num 1234output falseexample 3input num 1113343242output true Constraints1 numslength 105109 numsi 109