Ruby: started problem 59

Shouldn't be too hard