Microsoft Interview Question (Solution) - Count pairs whose sum is divisible by 4