Unity Interview Question

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