In this problem we’re given an array of integers temperatures where temperatures[i] represents the daily temperatures on ith day.
Our function should return an array result where result[i] is the number of days after the ith day before a warmer temperature. So for the first index we’d see the current temperature and count how long before a warmer temperature and save our result. We repeat this for the length of the temperatures given.