Hint 1

Read the lecture notes on the Queue ADT, slides 44-49.