Goldman Sachs Interview Question

Knights path, and a data structures question