Count Pairs Of Nodes Leetcode Problems On Array