Uber phone screen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-11-12Added By Anonymous
Source: Link

Company: Uber

Role: software engineer ii

Interview Stage: Phone Screen


Original Post Content:


Input is 7 distinct letters and output all possible combinations of the letters based on the below condition. Words should be at least four letters. One character will be mandatory. e.g. I/TWADLN is input, where I is mandatory. Examples:


WAIT: yes

LIT: no, too short


WANT: no, does not contain mandatory letter

ITWA: Yes


FISH: no, contains letters not in the set


Questions INITIAL Generate all possible words

Comments