add solution in c