Graphiq interview question

How to do pathfinding algorithm