Question d’entretien chez Infosys

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