2563. Count the Number of Fair Pairs - Explanation

Problem Link