Pergunta de entrevista da empresa TATA ELXSI

Operation based on 2D array.