Flip Inner Segment If String Starts and Ends With Vowels
Given an array of strings arr, transform each string s as follows and return the resulting array:
- If both the first and last characters of
sare vowels, reverse (mirror) the inner substring o...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
