[Leetcode] Daily Temperatures
When data behaves LIFO / FILO, stack is the first solution to consider.
Description
Given an array of integers temperatures
represents the daily temperatures, return an array answer
such that answer[i]
is the number of days…