Canva Interview Question

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