you give integer array num large integer uniqueDetermine large element array twice number array if return index large element return 1 example 1input num 3610output 1explanation 6 large integerfor number array x 6 twice big xThe index value 6 1 return 1example 2input num 1234output 1explanation 4 twice value 3 return 1 constraints2 numslength 500 numsi 100the large element num unique