The second of two coding challenges for a job I applied for.