Spotify Interview Question

Basic recursion algorithms and code interview