String Comparison - Not Equal To problem in While Loop

He gave a code fragment and I wanted him to extrapolate to the rest of his code …