Domanda di colloquio di FamPay

Design stack and queue, there is similar question on leetcode