Added a pe10 solution in ruby.