redBus India Interview Question

Basic SQL Queries on group by, Joins