My code is giving right answer! why doesn't it only pass one testcase?
hello @chetan_aggarwalbX1 i have corrected and commented the mistake .
please go through the code and try to understand
if you feel that your doubt is not cleared please reply here .
Happy Learning !!
Thankyou! I forgot to consider constraints