Given an m x n grid of characters board and a string word, return true if word exists in the grid.
The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once.
A B C E S F C S A D E E
Input: board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED" Output: true Explanation: A->B->C->C->E->D traces a valid path through the grid.
A B C E S F C S A D E E
Input: board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "SEE" Output: true Explanation: S->E->E at (1,3)->(2,3)->(2,2) is a valid adjacent path.
A B C E S F C S A D E E
Input: board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCB" Output: false Explanation: B at (0,1) cannot be reused; no valid path for ABCB exists.
m == board.lengthn == board[i].length1 <= m, n <= 61 <= word.length <= 15board and word consist of only lowercase and uppercase English letters.board = 3x4 grid, word = "ABCCED"