Easy
Implement a last-in-first-out (LIFO) stack using only queues. Implement MyStack with push(x), pop() (removes and returns the top element), top() (returns the top element), and empty().
Input: operations = ["MyStack","push","push","top","pop","empty"], values = [[],[1],[2],[],[],[]] Output: [null,null,null,2,2,false]