Count Pairs Satisfying the Conditions

Company: Harness_IITKGP_16oct

Difficulty: medium