Sonos Interview Question

Use the given APIs, write a function to add music to a playlist.