You are given a string s that may contain letters, digits, and special characters.
Your task is to reverse only the alphabetic characters (A–Z, a–z) while keeping all non-letter characters (digits, punctuation, symbols) in their original positions.
The order of the letters should be reversed as if all other characters did not exist.
Return the final string after applying this transformation.
Input: s = "xy-z@"
Output: "zy-x@"
Input: s = "a-bC-dEf-ghIj"
Output: "j-Ih-gfE-dCba"
Accepted:
Submission: