merge_inventories(warehouse_a, warehouse_b) that merges two stock-count dicts (product name -> quantity). When a product appears in both, sum the quantities rather than letting one override the other. Products unique to either warehouse keep their original quantity.merge_inventories({'pen': 10, 'bag': 5}, {'bag': 3, 'mug': 7}){'pen': 10, 'bag': 8, 'mug': 7}bag: 5 + 3 = 8; pen and mug come from a single side.
Start from a copy of warehouse_a, then for each key in warehouse_b add to the existing value using `result[k] = result.get(k, 0) + v`.