First condition states that there cannot exist a component in which only houses are connected.
Second condition tells that the sum of Ai of all houses and reservoir present in the component must be negative.
Can anyone explain the logic ,how can we solve the problem??