title: How to find the longest sequence of colors in C#
body: <p>How to calculate Longest Sequence of two Colours from last 5 colors in the following (using C#)?</p>
  
  <pre><code>var colorValues = new []{"Blue", "Yellow","Black","Yellow",
                           "Green","Yellow", "Yellow","Red"}
  </code></pre>
  
  <p>In the above expected sequence is "Yellow","Green","Yellow","Yellow".</p>