3 test cases are not passing please tell

@Ramitgoel you can’t say sequence is valid if i==0 in the if statement at line 16 of your code.cause maybe it becomes invalid at other indices.

1 Like

mark this doubt as resolved if you don’t have any further queries.