#include <stdio.h>
#include <stdlib.h>
/* 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) {
	// Create dynamic array
	int *arr = malloc(sizeof(int)*size);
	// Make a temp copy of arr (to create aliasing and add stuff to arr)
	// int *arr_copy = arr;
	// Convert string to integers
	for (int i = 0; i < size - 1; i++){
    arr[i] = strtol(strs[i], NULL, 10); // Something is wrong here
	}
	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
 */
