Question: In a given string, there will be two uppercase letters in between some lowercase letters. Print the substring from the first uppercase letter to

In a given string, there will be two uppercase letters in between some lowercase letters. Print the substring from the first uppercase letter to the last uppercase letter excluding them. If there are no letters in between them, print the word BLANK. It is guaranteed that there will be only two uppercase letters in the string. Sample Input baNgladEsh coDing Sample Output glad I BLANK
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
You can achieve this by iterating through the characters in the string and identifying the positions ... View full answer
Get step-by-step solutions from verified subject matter experts
