Regarding the problem statement

Sir do we need to print the strings in the same order as sample output? I am currently printing in reverse order as output

hello @punetha.anmol001
yeah u need to print in same order.

just change the calling order and it will print in required order

Will that be done by writing the cout line after the call?

I tried but not getting in the desired way.

pls share ur code with me

Test cases passed sir. Thanks

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.