My solution to a Gist problem requested as a technical quiz