Meta Interview Question

Stack and interval technical question.