This was the first of two coding challenges for a job I applied for.