answer for ruby-warrior beginner