Approach hintTry it first, then revealHide
From each cell matching the first letter, run a DFS that marks cells as used on the current path and restores them when backtracking. Stop a branch at the first mismatch.
From each cell matching the first letter, run a DFS that marks cells as used on the current path and restores them when backtracking. Stop a branch at the first mismatch.