title: C# Beautiful Strings Test case for failed case
body: <p>I have an issue with this:</p>
  
  <p>When John was a little kid he didn't have much to do. There was no internet, no Facebook, and no programs to hack on. So he did the only thing he could... he evaluated the beauty of strings in a quest to discover the most beautiful string in the world. </p>
  
  <p>Given a string s, little Johnny defined the beauty of the string as the sum of the beauty of the letters in it. The beauty of each letter is an integer between 1 and 26, inclusive, and no two letters have the same beauty. Johnny doesn't care about whether letters are uppercase or lowercase, so that doesn't affect the beauty of a letter. (Uppercase 'F' is exactly as beautiful as lowercase 'f', for example.) </p>
  
  <p>You're a student writing a report on the youth of this famous hacker. You found the string that Johnny considered most beautiful. What is the maximum possible beauty of this string?</p>
  
  <p>Input sample:</p>
  
  <p>Your program should accept as its first argument a path to a filename. Each line in this file has a sentence. E.g.</p>
  
  <pre><code>ABbCcc
  Good luck in the Facebook Hacker Cup this year!
  Ignore punctuation, please :)
  Sometimes test cases are hard to make up.
  So I just go consult Professor Dalves
  </code></pre>
  
  <p>Output sample:</p>
  
  <p>Print out the maximum beauty for the string. E.g.</p>
  
  <pre><code>152
  754
  491
  729
  646
  </code></pre>
  
  <p>And here is my code in C#:</p>
  
  <pre><code>static void Main(string[] args)
  {
      StreamReader myR = new StreamReader(args[0]);
      List&lt;string&gt; myL = new List&lt;string&gt;();
  
  
      while (!myR.EndOfStream)
      {
          myL.Add(myR.ReadLine());
      }
  
      foreach (string item in myL)
      {
          int maxBeautifulNum = 0;
          string temp = item.ToLower();
  
          char[] myC = temp.ToCharArray();
  
          string[] tempS = new string[myC.Length];
          string tempCount;
  
          for (int i = 0; i &lt; myC.Length; i++)
          {
              if ((myC[i] &gt;= 'a' &amp;&amp; myC[i] &lt;= 'z') || (myC[i] &gt;= 'A' &amp;&amp; myC[i] &lt;= 'Z'))
              {
                  tempS[i] = myC[i].ToString();
              }
  
          }
  
          tempS = tempS.Where(w =&gt; !string.IsNullOrWhiteSpace(w)).ToArray();
  
          List&lt;string&gt; myCounterList = new List&lt;string&gt;();
  
          while(tempS.Length &gt;= 1)
          {
              int count = 0;
              tempCount = tempS[0];
  
              for (int j = 0; j &lt; tempS.Length; j++)
              {
                  if (tempS[j] == tempCount)
                  {
                      count++;
                  }
              }
  
              myCounterList.Add(count.ToString());
  
              tempS = tempS.Where(w =&gt; w != tempCount).ToArray();
          }
  
          string[] myCounterString = myCounterList.ToArray();
          Array.Sort(myCounterString);
          Array.Reverse(myCounterString);
  
          for (int i = 0; i &lt; myCounterString.Length; i++)
          {
              maxBeautifulNum += (26 - i) * int.Parse(myCounterString[i]);
          }
          Console.WriteLine(maxBeautifulNum);
      }
  }
  </code></pre>
  
  <p>It run right with only some tests, but I can't find out else test for it runs failed.
  Any one can show me test for my code run failed.</p>