#36. mapBully
mapBully
Background
Description
Modify and return the given map as follows: if the key "a" has a value, set the key "b" to have that value, and set the key "a" to have the value "". Basically "b" is a bully, taking the value and replacing it with the empty string.
Format
Input
Output
Samples
"a": "candy" "b": "dirt"
{"a": "", "b": "candy"}
"a": "candy"
{"a": "", "b": "candy"}
"a": "candy" "b": "carrot" "c": "meh"
{"a": "", "b": "candy", "c": "meh"}
Limitation
1s, 1024KiB for each test case.