Added exercise: ex4-6.c