Apple interview question

FIFO implementation Coding problem Asked about project i did