Solve programming challenges in Ruby language