Uber Interview Question

SQL Inner join and filtering