Sum it up from cpp launchpad

why giving incorrect answer … logic is perfect …
used set of strings for unique and lexicographical printing

15
104 562 922 590 397 205 560 594 881 837 536 572 812 808 180
957

code produces unwanted characters

refer to 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.