Commiting part1.c soultion