C Programming Array Practice Problem