Added a C solution for problem 1