Dassault Systemes | OA | 26 Nov, 2025 | Add Drama to a String

Question · Posted Apr 2026

Question: Add Drama to a String Problem Statement: You are asked to add some drama to a string. Given your string, you must: Add one exclamation mark to every group of consecutive exclamation marks (a single exclamation mark is also considered a group). Then, change all the periods to exclamation marks. (Note: The example section was cut off in the original assessment prompt, but testing standard edge cases like "Hello. How are you!" -> "Hello! How are you!!" or "Wait!!!" ...

The full answer & interview discussion are available to premium members.

Log in Create a free account