TATA ELXSI Interview Question

reverse an array,query for some conditions in database management system.