PalTech Interview Question

6. Merge the array inside the objects,