Canva interview question

Fetch data from a mockup api and organize data to get a average number