Indus Valley Partners interview question

Database schema and queries