Company: Visa__...
Difficulty: medium
Transform Vowel Strings Problem Description You're given an array of strings named text . Transform each entry of the array according to the rules below. For every word: Check whether the word both starts and ends with a vowel. Treat 'a', 'e', 'i', 'o', 'u' as vowels, in either lowercase or uppercase. If that condition holds, reverse only the middle portion of the word - everything between its first and last characters. If the word doesn't satisfy that condition, leave it exactly as it is. Return the transformed array of strings. Examples Example 1: Input: text = ["apple", "banana", "Orange"] Output: ["alppe", "banana", "OGnare"] Explanation: "apple": begins with 'a' and ends with 'e', so it qualifies. Its middle segment "ppl" reverses to "lpp", giving "alppe". "banana": doesn't begin with a vowel, so it stays "banana". "Orange": begins with 'O' and ends with 'e', so it qualifies. Its middle segment "rang" reverses to "Gnar", giving "OGnare". Example 2: Input: text = ["AE", "CodeSignal