Solutions to pythonchallenge.com in different languages