Check if a word exists in a grid | Turo Interview Question