Daily Temperatures — monotonic stack
Scan right to left, keeping a stack of candidate future days; pop the ones today is at least as warm as, and the new top is today's answer.
Try:
temperatures
answer (days to wait)
stack (day indices)