Check if a given string can be formed using characters of adjacent cells of a Matrix
Given a matrix board of characters and a string Word, the task is to check if Word exists on the board constructed from a sequence of horizontally and vertically adjacent characters only. Each character can be used only once. Examples: Input: board = { {'A', 'B', 'C', 'E'}, {'S', 'F', 'C', 'S'}, {'A