Infosys interview question

Questions on Array Optimisation required in o(n) Questions on Project