public int xorOperation(int n, int start) { int store = 0; for(int i = 0; i < n; i++){ store = start ^ (start + 2 * i ); } return store; } }