Wipro interview question

Family background Puzzles Sql Self join