Exercism bob exercise in ruby