Calculation & Aggregation
Build a "flattened" array of all items regardless of whether they are a main or sub item. The order is not important for this exercise.
Hint: This requires understanding array functions