Jane Street Interview Question

Minimum distance between two nodes or points