Am trying to represent two arrays integer members summation into one as the below example:

```
      int[] array1 = {1,0}
      int[] array2 = {5} 
      int[] result = {1,5}
  OR
      int[] array1 = {2,4}
      int[] array2 = {3,6} 
      int[] result = {6,0}

```

(minding the summation carry as well)) and so on ... , below is my attempt , am but it didn't pass all test scenarios , any missing part ?

```
public static int[] Process(int[] arr1, int[] arr2)
{
    int sum = 0;
    int length1 = 0;
    int length2 = 0;
    int size = 0;
    int carry = 0;

    if (arr1.Length > arr2.Length) { size = arr1.Length; }
    else { size = arr2.Length; }

    int[] RepArray = new int[size+1];

    for (int i = 0; i < size; i++)
    {

        sum = ( (length1 - i >= 0) ? arr1[length1  - i] : 0) + ( (length2 - i >= 0) ? arr2[length2 - i] : 0) + carry;

        RepArray[(size - i)] = sum % 10;
        carry = sum / 10;
    }

    return RepArray;

}

```