Spotify playlist problem:
You'll find a list of songs from a Spotify playlist below
input: https://gitlab.com/snippets/1971601
- Notice that
songs
is an array which contains a list of objects. - Each object in the
songs
array represents a single song. - Each song has a
track
object. - Each
track
object has an artists array to represent all the artists who were involved in the track.
Problem:
For each artist, list all the songs they've worked on.
Expected output: https://gitlab.com/snippets/1971602