Niantic Interview Question

Given a matrix, generate a path from one point to another.