Write a simple Swift program that:

Declares a String variable and assigns it a value.

Creates two sub-strings out of it such that

the first sub-string is composed of all letters in the odd number positions (1, 3, 5 etc.) in the original string

the second sub-string is composed of uppercase versions of all letters in the even number position in the original string.

× How can I help you?