please help me find the mistake in the above code
Not able to pass all the test cases
Hello @prerna_gupta31 i have corrected your code and now it is passing every test case:
i have commented the mistake:
if you have any doubt you can ask here:
Happy Learning!!
Thank you for helping me out