203. Fix the Birthday Invitation
Easy · String
Your friend wrote a birthday invitation but forgot to fill in the name and age! Given a template string with placeholders `{name}` and `{age}`, fill them in and return the complete invitation.
Examples
Example 1
Input: template="Hi {name}, you are invited! You turn {age} soon!", name="Luna", age=13
Output: "Hi Luna, you are invited! You turn 13 soon!"
Explanation: Replace both placeholdersConstraints
- Template always contains {name} and {age}