Completed problem 10 in C