Adding problem 1 done in ruby
Adding problem 2 in ruby