IBM | SGSITS Indore | OA | Coding Round
IBM · Question · Posted Apr 2026
Problem: Word Shortening with Duplicates Objective You are given a sentence consisting of multiple words. Your task is to shorten the sentence by processing each word according to specific vowel-reduction and duplicate-indexing rules. The Rules of Shortening Vowel Removal: For every word in the sentence, remove all vowels (a, e, i, o, u, and their uppercase equivalents). The resulting string of consonants is the base shortened form. Handling Duplicate Shortened Forms: Because different words (like "bold" and "build") can result ...
The full answer & interview discussion are available to premium members.
Log in Create a free account