Problem 18 [CoffeeScript]