addDrama
Given a string, replace all '.' with '!' and ensure that every group ends with an '!'. Note that a single '!' counts as a group.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
