Zomato interview question

SQL join over columns with duplicate values