Jane Street interview question

Minimum distance between two nodes or points