Frage im Vorstellungsgespräch bei LinkedIn

Graph question asking minimum distance between two nodes.