MathWorks Interview Question

what's the optimized algorithm to do a word search? give the reason