Infosys interview question

Short array Min-max integration Database query