Number of Beautiful Pairs

Number of Beautiful Pairs - Coding Problem | K5kC