PointClickCare interview question

Simplified stack leetcode easy problem