Infosys Interview Question

Dataweave question on arrays like find the comman elements and union