Pergunta de entrevista da empresa Infosys

write a code to find the sum of diagonal elements in a matrix