Added C solution for problem 1