solve.c added and comment added