Unique Prefix Array

I am trying to write code for unique prefix array question in tries. Please help me identify error in my code.

I think you have sent me the wrong code. You haven’t used tries in this code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

https://ide.codingblocks.com/s/179756 I am so sorry. Here is the correct link to my code.

Have you completed your solution? Or do you need any help now.

No, it is not printing anything. I need you to help me identify error in this code.

https://ide.codingblocks.com/s/179756 this code is not printing anything. Please help me identify the error in this code.

Checkout this implementation: Unique Prefix

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.