The Jonah Group interview question

Simple programming task to do