Iterate over the given queries array and And answer the queries
for ( int i = 0 ; i < N ; i ++ ) System . out . print ( ( mp . get ( queries [ i ] ) != null ? mp . get ( queries [ i ] ) : 0 ) + " ▁ " ) ; } }