Broadridge Interview Question

DSA question spiral traversal in a matrix