Question: The program must accept a string S containing only alphabets and two integers N, K as the input. The program must toggle the case of
The program must accept a string S containing only alphabets and two integers N, K as the input. The program must toggle the case of alphabets starting from the first sliding window of size N based on the following conditions. - lf the number of vowels in a sliding window is greater than or equal to K, then the program must toggle the case of alphabets in the window and move to the next non-overlapping window. Else the program must move to the next sliding window to check vowels. The program must repeat the above process till it reaches the last sliding window or there is no next non-overlapping window. Finally, the program must print the revised string S as
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
