C3 AI interview question

Daily Temperature Leetcode Problem 2nd round