Domanda di colloquio di Infosys

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