HCLTech interview question

Using array as a queue