You have given a non-empty string. This string consists of lowercase or uppercase or both English letters. The length of the string will not exceed 1000.
Convert the string using following cases:
Case 1: If first character of string is in lowercase then second character should be in uppercase, third character should be in lowercase and so on till the last character of the string.
For example : Input geeksforgeeks
Case 2: If first character of string is in uppercase then second character should be in lowercase, third character should be in uppercase and so on till the last character of the string.
For example : Input Geeksforgeeks
• The first line of the input contains a single integer T denoting the number of test cases.
• 1 ≤ T ≤ 100
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.