Solved Nesting in C