digit_substring1.c modified