Innova Solutions interview question

Query on Database, and Logic problems