Ruby koans greed implementation