I know which testcase is not running but i dont know how to figure it out.
Pseudo Code for function
public static int[] StockSpanUsingStacks(int[] prices, StacksUsingArrays stack) throws Exception {
int span[] = new int[prices.length];
stack.push(1);
span[0] = stack.top();
for(int i = 1; i < prices.length; i++) {
if(prices[i] >= prices[i-1]) {
stack.push(stack.top() + 1);
}
else {
stack.push(1);
}
span[i] = stack.top();
}
return span;
}