getting wa even though I am pretty sure it is correct


See the test case : https://ideone.com/zVcFly

I think it is giving the right output.
Please tell me how you consider it wrong

Try 5 2 … you are wrong there…

thanks a lot.Can’t believe I was neglecting such an obvious case

welcome :slight_smile: