Kata exercise.  Uses IntelliJ Idea.