Number of Excellent Pairs

Number of Excellent Pairs - Coding Problem | K5kC