title: How to find the most occurrence of a string within a List of string?
body: <p>Example input:</p>
  
  <pre><code>List&lt;string&gt; input = new List&lt;string&gt;();
  input.Add("\nHello \nWorld");
  input.Add("My \nname \nis \John");
  input.Add("\n\n\n\n Just for fun \n\n");
  </code></pre>
  
  <p>Targeted string: "\n"</p>
  
  <p>Expected output: "<strong>\n\n\n\n Just for fun \n\n</strong> has the most "\n" and the number of occurrence is <strong>6</strong>"</p>
  
  <p><strong>Notes:</strong></p>
  
  <ol>
  <li>Search string is <strong>case insensitive</strong>, \n and \N should be considered as 2 occurrences.</li>
  <li>The user will enter the string to look for. \n is just an example. With the example above, if the user enters "m", the expected output would be <strong>My \nname \nis \John</strong> with 2 occurrences</li>
  </ol>