Add a very similar solution to word search problem.