int populate_array(int sin, int *sin_array) {
  for (int i = 8; i >= 0; i--){
    sin_array[i] = sin % 10;
    sin = sin / 10;
    }
  if (sin != 0) {
    return 1;
    } 
  else {
    return 0;
    }
}
It takes an integer and an integer array as its arguments, and returns an integer. This function's job is to populate the given integer array so that it contains the 9 digits of the given integer, in the same order as in the integer. 