Base test cases 2 and 3 are always failing, however tried submitting it 4 times still any hint regards test case is also not getting generated, any suggestion ? also tried generating manually few edge cases , code is working fine for all the test cases which I tried.
I havn’t checked the condition for not reaching the end of array, my bad!
Closing this topic as it has been solved by you yourself. Great job, keep working hard. if its not resolved feel free to un-mark the accepted solution to re-open the topic.