← 返回 capitalone 的题目列表If first and last letters are vowels, reverse the middle string
类型:online_judge
If the first and last letters of a string are vowels, reverse the middle part of the string.
Example
Input: "appla" Output: "alppla"
Input: "apple" Output: "eppal"
Constraints
The string has a minimum length of 2.
Example
Input
"apple"
Output
"eppal"