Trace of a matrix

Problem Name:
Trace of a matrix
Site:HackerEarth
Links:
Tags:
Problem setters: