Test cases are being failed

my output is correct but test cases are getting failed again and again
here is the link to my code:-https://ide.codingblocks.com/s/660083

hi @bhumitkatyal,
think about the ordering your order is reverse of what is asked
soln – you can store in a vector of string and print in reverse order

check here the updated code https://ide.codingblocks.com/s/660085 (commented)

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.