Leetcode 232 implement queue using stacks. If the queue is empty, do nothing.