My code is not passing all the test cases

hello @akash_281
image

correct ur base case.
it should be i==n