Cobblestone Energy interview question

LC 79, Word Search from Leetcode