Given a two-dimensional square array of integers, reverse both diagonals.