whats wrong in my code,solved as it is as given in video…also test cases are a bit confusing,how for 0th index element ans is 1 ?..
my code
whats wrong in my code,solved as it is as given in video…also test cases are a bit confusing,how for 0th index element ans is 1 ?..
my code