Count Pairs Below Threshold — Coding problem | OneNoughtOne