The code has solved the test which I am giving but failing the cases when I submit it.
Failed test cases
@dd090102_d0e70f0132b9b388 you have to print the answer in a single line, not in multiple lines.
for example :
correct way : 1 3
incorrect way :
1
3
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.