Sum already present in hash
if sum in map : NEW_LINE INDENT print ( f " { map [ sum ] } ▁ and ▁ ( { arr [ i ] } , ▁ { arr [ j ] } ) " ) NEW_LINE return NEW_LINE DEDENT else : NEW_LINE INDENT map [ sum ] = ( arr [ i ] , arr [ j ] ) NEW_LINE DEDENT