Adds solution to code_problem in Ruby on how to reverse an array or string.