Trie Interview Doubt

Please check what is wrong in my code.
2 test cases pass but 1 fail and 1 gives TLE.
Link to my code : https://ide.codingblocks.com/s/207720

Please help