Cisco interview question

detect loop in a graph question