Pergunta de entrevista da empresa Hexaware Technologies

Arrays based medium level question