ServiceNow Interview Question

Print diagonals from a n*n matrix.