Nutmeg Interview Question

Second stage was a coding challenge