0

Reverse, but only alphabets

Difficulty: EASY

Problem Statement
Suggest Edit

Given a String S, reverse all the alphabets, without affecting special characters.

Input Format :
String S
Output Format :
Updated string
Constraints :

1 <= Length os string S <= 10^5

Sample Input :
abcd^?ew!
Sample Output :
wedc^?ba!
Want to solve this problem? Login now to get access to solve the problems