title: how to find and display the most repeating words in a string using LINQ?
body: <pre><code>  String ss = "lijo is lijom is lijo fdf"; //here two words "is" and "lijo" is repeating two times so my output will be 
                            output   : lijo 
                                        is
  </code></pre>
  
  <p><strong>I tried Like this</strong></p>
  
  <pre><code> var count=words.GroupBy(g=&gt;g).Max(k=&gt;k.Count());
  //finding the max repeating elements count =2
  
  
   var res = words.GroupBy(s =&gt; s).Where(g =&gt; g.Count() == count).Select(s =&gt; s);
  </code></pre>
  
  <p>here i have tried by first finding the max count of repeating words. and assign this value in another query.</p>
  
  <p>i need to know if we can write both this queries together as one query. as a subquery
  how to do this in a different way ?
  using subquery or any other easy method?</p>