Back tracking example. A stack is used to determine whether a flight exists from the origin city to the destination city.