I was doing a stock span problem on Hackerblocks it passed all test cases but when I tried it on Geeks for geeks it is getting a problem in one test case, I will attach my code and question please help.
CB code: “ide codingblocks com/s/411499”
Gfg question: https://practice.geeksforgeeks.org/problems/stock-span-problem-1587115621/1#
GFG solution: only contain function: https://ide.geeksforgeeks.org/WyY0FLtM0y