printing required result
for ( int i = 0 ; i < ( int ) answer . size ( ) ; ++ i ) { if ( answer . get ( i ) . second > - 1 ) { flag = 1 ; System . out . print ( answer . get ( i ) . first + " ▁ " + answer . get ( i ) . second + "NEW_LINE"); } }