Count Unreachable Pairs Of Nodes Leetcode