Problem Description
Given a string A. Change the cases of all the characters.
If the character is lowercase convert it to uppercase and if the character is uppercase convert it to lowercase.
Note: All the characters in the string are latin uppercase or lowercase letters.
Problem Constraints
1 <= |A| <= 105
Input Format
Given a string A.
Output Format
Return a string.
Example Input
Input 1:
A = 6 = "InterviewBit"
Input 2:
A = "Scaler"
Example Output
Output 1:
"iNTERVIEWbIT"
Output 2:
"sCALER"
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified.
Still have a question? Checkout Sample Codes for more details.