Question d’entretien chez Adobe

Search for a word in a 2D array using BFS or DFS