Providence interview question

A coding questions about order