TATA ELXSI interview question

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