LTM Limited interview question

To find diagonal sum of an 2D array