Add solution for problem C1