SAP Interview Question

union and intersection of linked list