Crossword Problem - Under recursion And backtracking section

I’m getting WA in last test case. Here is my code https://ide.codingblocks.com/s/303156

@rcy5932
Your code actually failed this test case
Maybe try to fix this once
Else I’ll be happy to help you

4
gitohro qf ejvh i
3
gor
pih
sto