Java 8 solution for the Minisculus Challenge at http://minisculuschallenge.com/index.html