Spotify interview question

Questions on javascript, algorithms, execution context