#37. mapShare
mapShare
Background
Description
Modify and return the given map as follows: if the key "a" has a value, set the key "b" to have that same value. In all cases remove the key "c", leaving the rest of the map unchanged.
Format
Input
Output
Samples
"a": "aaa" "b": "bbb" "c": "ccc"
{"a": "aaa", "b": "aaa"}
"b": "xyz" "c": "ccc"
{"b": "xyz"}
"a": "aaa" "c": "meh" "d": "hi"
{"a": "aaa", "b": "aaa", "d": "hi"}
Limitation
1s, 1024KiB for each test case.