Wrong answer in stock span

I am getting one of the test cases as the wrong answer
so please tell me what am I doing wrong.

I have edited your code… Try to submit it now…

1 Like

this worked …thanks :+1: