Centric Software interview question

Develop a function to generate a report that aggregates customer order data.