Spotify Interview Question

Basic coding interview questions, recursion