title: How do I replace words in a string based on words in an Array in Ruby?
body: <p>how would I do the following? I tried doing this gsub but I can't figure out what really efficient if strings_to_highlight array is large. Cheers!</p>
  
  <pre><code>  string = "Roses are red, violets are blue"
  
    strings_to_highlight = ['red', 'blue']
  
    # ALGORITHM HERE
  
    resulting_string = "Roses are (red), violets are (blue)"
  </code></pre>