int **split_array(const int *s, int length) {
    int num_odds = 0;
    int num_evens = 0;
    
     for (int i = 0; i < length; i++) {
        if ((i % 2) == 0) {
            num_evens += 1;
        }
        else {
            num_odds += 1;
        }
     }
    int *final_array = malloc(2 * sizeof(char*));
    final_array[0] = malloc(num_evens * sizeof(int));
    final_array[1] = malloc(num_odds * sizeof(int));
    
    int even_counter = 0;
    int odd_counter = 0;

    for (int i = 0; i < length; i++) {
        if ((i % 2) == 0) {
            final_array[0][even_counter] = s[i];
            even_counter += 1;
        }
        else {
            final_array[1][odd_counter] = s[i];
            odd_counter += 1;
        }
    }

    return final_array;
}