Failing one testcase Stock span problem


couldnt understand what’s wrong

test case fails for the case:

5
30
40
35
45
42