FastPrepReverse the Interior of Vowel-Bounded Words
Problems/Reverse the Interior of Vowel-Bounded Words

Reverse the Interior of Vowel-Bounded Words

ZipRecruiter logoZipRecruiter● EasyNEW GRADOA

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Two ZipRecruiter new-grad OA reports describe the rule that a word's first and last letters must be vowels in either case, reversing only the interior, leaving other words unchanged, and an array result. The reports do not keep limits, a function signature, or reusable image data.

You are given an array of strings text, where each string represents a word.

A word qualifies when both its first and last characters are vowels. The vowels are a, e, i, o, and u, and the check is case-insensitive.

For every qualifying word, reverse only the substring between its first and last characters. Keep the two endpoint characters unchanged. Leave every other word unchanged and preserve the original array order.

Return the modified array of strings.

Function

reverseVowelBoundedInteriors(text: String[]) → String[]

Examples

Example 1

text = ["abcde","acvbn","Etuilo"]return = ["adcbe","acvbn","Eliuto"]
  • abcde begins with a and ends with e, so reversing bcd produces adcbe.
  • acvbn does not end with a vowel and remains unchanged.
  • Etuilo begins and ends with vowels; reversing tuil produces Eliuto.

Constraints

  • 1 <= text.length <= 105
  • Every element of text is a non-empty word containing uppercase or lowercase English letters.
  • The total number of characters across all words is at most 105.
  • Vowel checks are case-insensitive, while every character's original case is preserved.

More ZipRecruiter Online Assessment questions

  • Four-Level Banking System with Scheduled PaymentsOA · Seen Oct 2026
  • Count Three-Digit Numbers with Distinct DigitsOA · Seen Oct 2024
  • Longest Frequency-Bounded SubarrayOA · Seen Oct 2024
  • Minimum Changes to Draw a YOA · Seen Oct 2024
  • Apply Binary State OperationsOA · Seen Sep 2024
  • Simulate Orchard Rot SpreadOA · Seen Sep 2024
  • Compare Odd- and Even-Index SumsOA · Seen Sep 2024
  • Coordinate Removals with Column GravityOA · Seen Sep 2024
  • Lexicographically Smallest End ReversalOA · Seen Sep 2024
  • Recursively Expanded Shell Command CountsOA · Seen Sep 2024

Similar questions at other companies

  • Reverse the Interior of Vowel-Bounded WordsVisa · OAVisa interview questions
  • Check If Two String Arrays Are EquivalentMicrosoft · ONSITE INTERVIEWMicrosoft interview questions
  • Add Signed Character ArraysByteDance · PHONE SCREENByteDance interview questions
  • Objects Seen on Both Days by Multiple ClientsGoogle · PHONE SCREENGoogle interview questions
  • Count User Mentions in Chat MessagesRamp · OARamp interview questions
  • Catch Fish with Reusable BaitsSusquehanna International Group (SIG) · OASusquehanna International Group (SIG) interview questions
  • Find Words That Can Be Formed by CharactersTabaPay · OA
  • Minimum Index Distance Between Person and CakeSnowflake · OA · PHONE SCREENSnowflake interview questions
  • Word Frequency Counts in Alphabetical OrderAbridge · OAAbridge interview questions
  • Count Multiples of Three with Two SevensHudson River Trading · OAHudson River Trading interview questions

ZipRecruiter interview experiences

  • ZipRecruiter SWE OA, Level Not Reported: 23 Experiences
  • ZipRecruiter SWE Intern OA Scores: 4 Experiences
  • ZipRecruiter SWE New Grad OA: 9 Experiences
All ZipRecruiter interview questionsSee ZipRecruiter hiring insights
Saved
class Solution {
    public String[] reverseVowelBoundedInteriors(String[] text) {
        // Write your code here.
    }

}
Checking account…