0522
prob_17 Ruby solve