Monotonic Stack & Queue
"For each element, find the nearest element to the right that is bigger" looks like it needs a nested
"For each element, find the nearest element to the right that is bigger" looks like it needs a nested
Both patterns replace a nested loop with a single pass by maintaining two indices that only ever move