Given a square matrix, calculate the absolute difference between the sums of its diagonals.
Leverage these websites to learn data structures and algorithms.