Completed problem 6 in C