Unity interview question

How do you apply Dijkstra's algorithm and A* path finding for NPC's