
int populate_array(int sin, int *sin_array) {
        int temp = sin;
        int size = 0;
        while (temp != 0){
                temp /= 10;
                size ++;
        }
        if (size != 9) {
                return 1;
        }
        else {
                for (int i = size - 1; i >= 0; i--){
                        sin_array[i] = sin % 10;
                        sin /= 10;
                }
                return 0;
        }
}