Add solution in ruby