Meta Interview Question

chess board traversal