Capgemini Interview Question

self join