You are given a string s.
Your task is to reverse only the vowels (a, e, i, o, u in both lowercase and uppercase) while keeping all other characters in their original positions.
Return the resulting string after the vowels have been reversed.
Input: s = "Programmer"
Output: "Pregrammor"
Input: s = "HELLOworld"
Output: "HELLOworld"
Accepted:
Submission: