Apple interview question

8 Queue problem