No of Pair such that their Biwise AND gives power of 2.
I am not sure about N, but it must be not O(n^²) solution.
Codeforces Round 1123 Solution Discussion