Coding Challenge · BEGINNER
Design a function that calculates the span of stock prices on consecutive days. The span of a stock price on a given day is defined as the number of consecutive days leading up to and including that day, during which the stock price was less than or equal to the stock price on that day. Implement the StockSpanner funct…