Sum It Up, seems like logic is correct

Hi seems like logic is correct may know where am I going wrong.

@dev_emma
Hello Emmanuel ,
pls save ur code at https://ide.codingblocks.com/ and share the generated link

@dev_emma
your code is code the issue is with printing order.
to print them in required order
a) call printAllComb (in line 30) after if statement
b) add out.pop_back() statement in ur if block after function call
check ur updated code here

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.