Meta interview question

Stack and interval technical question.