Sourceress interview question

Hackerrank-esque puzzles