Added C and C++ solutions

Solutions for problem 001 in both languages.