Infosys interview question

circular array queston is in mediuim level