reformats max_solution.rb, tests all pass