Added C solution to problem 6, removed C++ solutions as they're basically the same as the C ones