Answer:
See the explanation
Step-by-step explanation:
Initialize a string called str and a boolean called found
Initializes a for loop that iterates through the str
Inside the for loop:
Gets the characters of the str and assigns them to the ch. Checks if the character is an uppercase or not. If an uppercase character found, updates the found as true and stops the loop.
For this example, the loop will stop when the character "E" is reached