/*
 * Convert a 9 digit int to a 9 element int array.
 */
int populate_array(int sin, int *sin_array) {
    int position = 8;
    while(sin != 0){
        sin_array[position] = sin % 10;
        sin = sin / 10;
        position -= 1;
    }
    return 0;
}