First CodeWars kata in CoffeeScript