Bloomberg Interview Question

Use multiple stacks to get a queue