Cadence Design Systems interview question

Graph - Path between 2 vertices