Stores count of pairs of equal element by removing arr [ i ]
pairs_after_arr_i_removed = cntPairs + 1 - mp [ arr [ i ] ] NEW_LINE print ( pairs_after_arr_i_removed , end = ' ▁ ' ) NEW_LINE return NEW_LINE