give array integer num return number good pairsA pair j call good numsi numsj j Example 1input num 123113output 4explanation there 4 good pair 03 04 34 25 0indexedexample 2input num 1111output 6explanation each pair array goodexample 3input num 123output 0 constraints1 numslength 1001 numsi 100