Spotify interview question

Coding challenge using online tool to manipulate strings