Question d’entretien chez LinkedIn

Write an algorithm to sort and organize API data.