Microsoft interview question

Build the functions of a queue