inDrive interview question

Create optimal index for a db query