PointClickCare Interview Question

Simplified stack leetcode easy problem