Finding number of pairs with a certain XOR value


This is a companion discussion topic for the original entry at http://iq.opengenus.org/finding-pairs-with-a-certain-xor/