Solution to Spotify's CatVsDog Puzzle