Bank of America Interview Question

Real time coding for queues