LinkedIn Interview Question

Write an algorithm to sort and organize API data.