Solved all 8 Problems in C