Given `n` nodes, an undirected `edges` list, a `src`, and a `dst`, implement `hasPath(n, edges, src, dst)` returning whether a path exists from `src` to `dst`.
Run your code to see results.