Amazon interview question

search for words in a 2d array