Added new exercises CH10

Good use of a one time loop. I'm not keen on the negative logic in the condition though - quite confusing.