One of the test case is failing

the compilation is successful but one test case is failing

Kindly resolve my doubt

Kindly resolve my doubt, why my test cases are failing

Hello @adityaanand47, you were missing the case when n == 0. Kindly correct that out and instead of dividing the list by 2 at the end you can simply impose the condition like i <= j.