Problem WORDGRID

Can anyone share his/her approach to the problem “WORDGRID”?

Problem Link- Contest Page | CodeChef