Count Servers that Communicate | Leetcode 1267