Solving Coderbyte problems using Ruby and Rspec