My code passed only 1 test case. can you provide me some more test cases for which my code is not working?

Please Solve my query …No one has replied till now

@mb129162
your code fails for larger test cases .use tries instead