And initialize arr [ i ] as 0 means the element ' i + 1' is not seen so far
arr [ i ] = 0 NEW_LINE i += 1 NEW_LINE print ( " Below ▁ are ▁ counts ▁ of ▁ all ▁ elements " ) NEW_LINE for i in range ( 0 , n ) : NEW_LINE print ( " % d ▁ - > ▁ % d " % ( i + 1 , abs ( arr [ i ] ) ) ) NEW_LINE print ( " " ) NEW_LINE