Implement a queue using two stacks.
Asked in the round 1 stage. Started with O(2n) approach, optimized to O(n).
Implement queue_operations(operations). Each operation is either ["enqueue", value] or ["dequeue"]. Return an array containing the value returned by every dequeue operation. An empty dequeue returns None.
def queue_operations(operations):