Added 2nd problem in C