Q10. String STL 10

I think either the flag variable should be initialized to “true” in order to get “YES” as output or the correct output should have been “NO”. Please look at it.

@sushil_d_loser can you share the question here by copy pasting or posting a screenshot of the same