Reverse string...add a space character between and print in mixed case

For each item from RegEx output I want to reverse the String, print with space between characters and want to print in mixed case.

for example - bangalore

the output should be -
erolagnab
BaNgAlOrE
b a n g a l o r e

  1. There is a method for reversing a string. Give it a google search, and you’ll find that this one is the simplest of your cases.

  2. Look for methods ToUpper and ToLower. there are ways you can determine when to use either. One method is to create a boolean variable, and toggle it between true and false to change how you’re updating the values.

  3. This one could be done multiple ways. One of them is to write to a new string character by character, and append a space after each character.