Synechron interview question

self join