Code working but submission error
@deepgarg46 first of all use System.out.println() not print.
Even after this your code is not giving correct output for example :
acb
Correct output :
bac
bca
cab
cba
Your Output :
cab
cba
bac
bca
Sequence is wrong debug for this and correct it.
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.