title: I want to return the string that has the highest sum in an array for Ruby
body: <p>So far I am able to return the sums of the strings:</p>
  
  <pre><code>puts "Please enter strings of #'s to find the number that has the greatest sum."
  puts "Use commas to separate #'s."
  user_input = gets.chomp
  array = user_input.split(",")
  array.map do |num_string|
    num_string.chars.map(&amp;:to_i).inject(:+)
  end
  </code></pre>
  
  <p>But I wish to return the string that adds up to the highest value. For instance: If I have array = ["123","324","644"] I need it to return the sums of each value so the result should be 6,9,and 14 respectively. Since 1+2+3=6 etc. I am this far but now I need to return "644" as the answer since it is the string that sums to the highest value.</p>