Implement a FIFO queue using only two stacks.
Input: one operation per line —
push x — enqueue integer xpop — dequeue and print the frontpeek — print the frontempty — print true/falseOutput: one line per operation — push prints null; the others print their result.
push 1 push 2 peek pop empty
null null 1 1 false
Run your code against the sample tests, or Submit to run the full suite.