Add solution for problem 15. This time implemented in C.