This is almost the solution I\'m looking for. Also Refer This for the question
https://www.geeksforgeeks.org/boggle-find-possible-words-boar