solve Checkio (http://www.checkio.org/) in functional languages.