Correct the print order

I am getting the output in reverse order . please suggest a way to print it in required order without use of vector.
check the code https://ide.codingblocks.com/s/216534

@chawlavikalp2000 If you observe the way recursive calls are being invoked, then you will observe that if the recursive call for skipping the current index element is before the recursive call for selecting the current element then it will print the output in reverse order.

Also, assign out[j] = in[i] after the recursive call for skipping the current element.
Feel free to ask if you are facing issue in implementing these changes.

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.