Nimap infotech interview question

Python string questions to change the words and alphabets