/* Return a pointer to an array of ints with size elements.
   - strs is an array of strings where each element is the string
     representation of an integer.
   - size is the size of the array
 */

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

/* Return a pointer to an array of ints with size elements.
   - strs is an array of strings where each element is the string
     representation of an integer.
   - size is the size of the array
 */