Count Pairs with Given Sum and XOR

easy