Amazon Interview Question

search for words in a 2d array