Solutions to code challenges.