Stock Span Problem. Help needed in debigging

My code is failing test case 0 and test case 2. Could you tell where i am going wrong?

@utkarshvashisth94
hello utkarsh,
u missed <=
image