you give array num consist positive integersyou integer array reverse digit add end array you apply operation original integer numsreturn number distinct integer final array Example 1input num 113101231output 6explanation after include reverse number result array 11310123113112113the reverse integer add end array underline Note integer 10 reverse 01 1the number distinct integer array 6 the number 1 10 12 13 21 31example 2input num 222output 1explanation after include reverse number result array 222222the number distinct integer array 1 the number 2 Constraints1 numslength 1051 numsi 106