Zomato Interview Question

SQL join over columns with duplicate values