Grades School Ruby solution