Solve word search problem in linnear time.