title: how to check if two string contains the same character in ruby
body: <p>I want to make a word unscarambler in ruby. say if I have a words in array</p>
  
  <pre><code> words = ["foo","ofo"]
  </code></pre>
  
  <p>how can I compare this to another string like "oof" and returning true value  </p>