Leetcode online judge "Word Search" solution.