HSBC interview question

Write a code to implement queue from scratch