HSBC Interview Question

Write a code to implement queue from scratch