Company: Visa__...
Difficulty: medium
Transform Vowel Strings Problem Description You are given an array of strings called text . Your task is to transform this array based on the following rules. For each word in the array: Check if the word starts and ends with a vowel. Vowels are defined as 'a', 'e', 'i', 'o', 'u' (both lowercase and uppercase). If the word meets this condition, reverse the portion of the string between the first and last characters. If the word does not start and end with a vowel, leave it unchanged. Return the resulting array of strings. Examples Example 1: Input: text = ["apple", "banana", "Orange"] Output: ["alppe", "banana", "OGnare"] Explanation: "apple": Starts with 'a', ends with 'e'. The middle part "ppl" is reversed to "lpp". Result: "alppe". "banana": Does not start with a vowel. Remains "banana". "Orange": Starts with 'O', ends with 'e'. The middle part "rang" is reversed to "Gnar". Result: "OGnare". Example 2: Input: text = ["AE", "CodeSignal"] Output: ["AE", "CodeSignal"] Explanation: "AE"