Added 5th problem in C