Infosys Interview Question

To write a script for database query