Yelp interview question

Difference between c++ and python dynamic and static typing a programming problem about webpages links. It is similar to a graph problem. Give two vertices in a directed graph, and find whether there is a path from one to the other.