#39. topping1
topping1
Background
Description
Given a map of food keys and topping values, modify and return the map as follows: if the key "ice cream" is present, set its value to "cherry". In all cases, set the key "bread" to have the value "butter".
Format
Input
Output
Samples
"ice cream": "peanuts"
{"bread": "butter", "ice cream": "cherry"}
{}
{"bread": "butter"}
"pancake": "syrup"
{"bread": "butter", "pancake": "syrup"}
Limitation
1s, 1024KiB for each test case.