Challenge 45
🔠🔡
Case Converter
The Cambridge A-Level pseudocode specification contains the functions TO_LOWER and TO_UPPER respectively to convert a string's case
Your job is to recreate the functionality of these, as if you were the person implementing them for the first time
You are forbidden from using the following functions, but everything else is permitted:
- TO_LOWER & TO_UPPER
- UCASE & LCASE
Examples:
MY_LOWER("aBcDE") would return "abcde"
MY_UPPER("aBcDE") would return "ABCDE"
MY_LOWER("aBcDE #123! XyZ") would return "abcde #123! xyz"