Repeat function in trie class

Hello There,

I am not getting the need for a repeat function. Can someone explain its usage as well as logic in detail?

Hello Aman,
The repeat function is being used for printing a line for output separation between two test cases as you can see in the output tab and also in main function it is used. It is not related to solution part.