Problem Description

Line1 is a template with placeholders like {name}. Line2 is a JSON object. Replace placeholders with values. If any key is missing, print MISSING key. Else print final string.

Input Format

Line1: template string. Line2: JSON object.

Output Format

One line output.

Sample Test Case

Input:
Hello {name}, score {score} {"name":"Ravi","score":10}
Output:
Hello Ravi, score 10

Constraints

Total length up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next