MathWorks Interview Question

Knight traversal around chess board.