Stock span wrong ans

Can you tell me where am i wrong the ide is https://ide.codingblocks.com/s/68295

@Yatharth-Katyal-1414103435293362 on line 15 use -1 instead of 0