These are my approved solutions to Spotify Tech Puzzles (https://www.spotify.com/us/jobs/tech/).
Honorable Judge Kattis said: "We have tested your solution, and we are happy to report that it solved the problem! We hope you had as fun with it as we did."