My solution to Moa Creative programming test.