Find the occurences of a specified word in a matrix -- Amazon