int **split_array(const int *s, int length) {
    int **result = malloc(sizeof(int*) * 2);
    result[0] = malloc(sizeof(int) * (length + 1) / 2);
    result[1] = malloc(sizeof(int) * (length + 1) / 2);
    int even = 0;
    int odd = 0;
    for(int i = 0; i < length; i ++){
      if(s[i] % 2 == 0) {
        result[0][even] = s[i];
        even++;
      }
      else {
        result[1][odd] = s[i];
        odd++;
      }
    }
    return result;

}
Return a pointer to an array of two dynamically allocated arrays of ints. The first array contains the elements of the input array s that are at even indices. The second array contains the elements of the input array s that are at odd indices.