Bank of America interview question

Stack and queue Implementation.