Spotify Interview Question

Live code to sort a multi dimensional array with least time complexity