What is wrong with my code?

Link to code->https://ide.codingblocks.com/s/643459
it is giving wa

hi @ikshuldureja130
ur logic was absolutely correct just a small mistake in the way of printing the ans

expected sample o/p --> [2, 3]
ur o/p --> 2 3

the brackets and commas were missing in ur o/p…
corrected code --> https://ide.codingblocks.com/s/643484

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.