title: Merge two arrays and return sorted array in c#
body: <hr>
  
  <p>You are given a function <code>mergeArrays</code> which takes in 2 sorted arrays as a parameter. The first array has <code>M</code> elements in it, the second one also has <code>M</code> elements, but it’s capacity is <code>2*M</code>.</p>
  
  <p>The function <code>mergeArrays</code> takes both the arrays as parameters along with <code>M</code>. You are supposed to merge both the arrays in the second array such that the resulting array is sorted.</p>
  
  <p><strong>Sample TestCase 0:</strong> </p>
  
  <p><code>Input</code>:</p>
  
  <p><code>1st array: {3,5,6,9,12,14,18,20,25,28}</code></p>
  
  <p><code>2nd array: {30,32,34,36,38,40,42,44,46,48 }</code></p>
  
  <p><code>Output: {3,5,6,9,12,14,18,20,25,28,30,32,34,36, 38,40,42,44,46,48}</code></p>
  
  <p>Explanation:
   As stated in the question, the second array contains enough space to accommodate the 1st array. Return the merged sorted array.</p>