Minor syntax edits

Fixed while(true) syntax and edited problem 7 code to finish in 22
seconds