CodingModerate
Replace question marks in string avoiding adjacent duplicates
Filed under American Express
The question
Given a string containing lowercase letters and question marks, replace each question mark with a lowercase letter such that no character is equal to its preceding and succeeding characters.
No write-up yet. Related questions below have one.
Related American Express questions
Collected from public candidate posts and coding forums. Updated Nov 2026.