Add solution for C