LeetCode

Online Stock Span

Click here for an explanation.