Spotify interview question

algo, data structures, one problem to solve