Given an m x n grid of characters 'board' and a string 'word', determine if 'word' exists in the grid. The word can be formed by sequentially adjacent cells, where neighbors are horizontally or vertically contiguous. Cells may not be reused in the construction of the word.
Click Run to execute sample tests.