Infosys interview question

coding questions in array and DSA