int *build_array(char **strs, int size) {
    int *result = malloc(size * sizeof(int));
    for (int i = 1; i < size + 1; i++) {
        result[i - 1] = strtol(strs[i], NULL, 10);
    }
    return result;
}