Infosys Interview Question

Database queries, normal stuff