iHeartMedia Interview Question

how to sort an array