Cheapest Return Loop for Every Node

Company: ThoughtSpot_21sep

Difficulty: medium