Update hmwk2_sol.c

Mistakes made!