logic to compare two array of objects and need to add a matched field value
we need to check the masterId at each level in both the object
if its equal at each level than we need to check for ref,
if ref is equal than add the quantity of both unique ref.