search in map for all words in the sentence
for ( int i = 0 ; i < m ; i ++ ) { if ( mp . ContainsKey ( sentence [ i ] ) && mp [ sentence [ i ] ] > 0 ) mp [ sentence [ i ] ] = mp [ sentence [ i ] ] - 1 ; else return false ; }