The goal here is to simply reverse a string, with one twist:
Keep the capitalization in the same places.
Example Input 1: Hello, Midnightas
Example Output 1: SathginDim ,olleh
Example Input 2: .Q
Exmaple Output 2: q.
Rules:
- Output to STDOUT, input from STDIN
- The winner will be picked 13th of July on GMT+3 12:00 (One week)
- The input may only consist of ASCII symbols, making it easier for programs that do not use any encoding that contains non-ASCII characters.
- Any punctuation ending up in a position where there was an upper-case letter must be ignored.