i need some help how to solve this problem. urgent!

Lucky boy, we didn't use Ruby at school.