Crossword problem

I have made an intuitive code for crossword puzzle but still confused how should I traverse once character doesn’t match. please help.
here is my link-

Make a trie data structure from all the words possible and match them.

Make a trie data structure from all the words possible and match them.

But we haven’t studied trie yet.

Is there any way to solve this with brute force approach(recursion)

No issues, you can come back to this question after you study trie. Else you’ll face TLE