Create a program to swap the lower case and upper case characters in a given string. Get the input string and swap the lower case…
A string S of lowercase English letters is given.We want to partition this string into as many parts as possible so that each letter appears…