text: Increment its frequency by 1 if it is already present in m . Otherwise , set its frequency to 1
code: else { if ( m . has ( k - i ) ) m . set ( k - i , m . get ( k - i ) + 1 ) else m . set ( k - i , 1 ) } } ) ;