Count Pairs in Range

Company: ibm_22oct

Difficulty: medium