The trip described is exactly a closed walk that starts at one city, visits every other city exactly once, and returns to the start - i.e. a Hamiltonian cycle. So the task reduces to deciding, for each of the two highway graphs (i) and (ii), whether it contains a Hamiltonian cycle. A graph has no Hamiltonian cycle if it fails a necessary condition, e.g. it has a cut vertex (articulation point), a vertex of degree 0 or 1, or - when bipartite - unequal numbers of vertices in the two colour classes. Applying these checks to the figures shows that figure (i) admits a Hamiltonian cycle while figure (ii) does not, yielding option A.
The trip is a Hamiltonian cycle. Figure (i) contains such a cycle, while figure (ii) does not because it violates a necessary condition (e.g. a cut vertex or degree-1 vertex). Hence the trip is possible for (i) but not for (ii), confirming option A.