/*
* bitXor - x^y using only ~ and &
* Example: bitXor(4, 5) = 1
* Legal ops: ~ &
* Max ops: 14
* Rating: 2
*/
int bitXor(int x, int y) {
/*compute x^y using only ~ and &*/
int m = ~x;
int n = ~y;
return (m&y+n&x);
}