title: Better way for the special concatenation of two strings
body: <p>I want to concatenate two strings in such a way, that after the first character of the first string, the first character of second string comes, and then the second character of first string comes and then the second character of the second string comes and so on.  Best explained by some example cases: </p>
  
  <pre><code>    s1="Mark";
      s2="Zukerberg";  //Output=&gt; MZaurkkerberg
  </code></pre>
  
  <p>if: </p>
  
  <pre><code>    s1="Zukerberg";
      s2="Mark"        //Output=&gt; ZMuakrekrberg
  </code></pre>
  
  <p>if: </p>
  
  <pre><code>    s1="Zukerberg";
      s2="Zukerberg";  //Output=&gt; ZZuukkeerrbbeerrgg
  </code></pre>
  
  <p>I've written the following code which gives the expected output but its seems to be a lot of code. Is there any more efficient way for doing this?</p>
  
  <pre><code>public void SpecialConcat(string s1, string s2)
          {
              string[] concatArray = new string[s1.Length + s2.Length];
              int k = 0;
              string final = string.Empty;
              string superFinal = string.Empty;
              for (int i = 0; i &lt; s1.Length; i++)
              {
                  for (int j = 0; j &lt; s2.Length; j++)
                  {
                      if (i == j)
                      {
                          concatArray[k] = s1[i].ToString() + s2[j].ToString();
                          final = string.Join("", concatArray);
                      }
                  }
                  k++;
              }
              if (s1.Length &gt; s2.Length)
              {
                  string subOne = s1.Remove(0, s2.Length);
                  superFinal = final + subOne;
              }
              else if (s2.Length &gt; s1.Length)
              {
                  string subTwo = s2.Remove(0, s1.Length);
                  superFinal = final + subTwo;
              }
              else
              {
                  superFinal = final;
              }
              Response.Write(superFinal);
          }
      }
  </code></pre>
  
  <p>I have written the same logic in Javascript also, which works fine but again a lot of code.</p>