Yet another CodeWars kata in CoffeeScript