Stock Span Problem
You are given an array `prices`, where `prices[i]` is the price of a stock on day `i`, listed in the order the days occurred. For each day `i`, the **span** is the largest number of consecutive days ending at day `i` for which the price never exceeded `prices[i]`.