**Tell us what’s happening:**

pairwise([0, 0, 0, 0, 1, 1], 1) should return 10

Can anyone explain this result? I thought 0 and 1 can only be used once, so the answer is 4.

**Your code so far**

```
function pairwise(arr, arg) {
var ind = 0;
var indArr = [];
for(var i = 0; i < arr.length; i++){
for(var j = 0; j < arr.length; j++){
if(i < j && arr[i] + arr[j] == arg && indArr.indexOf(arr[i]) < 0){
indArr.push(arr[i]);
indArr.push(arr[j]);
ind += (i + j);
}
}
}
return ind;
}
pairwise([0, 0, 0, 0, 1, 1], 1);
```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36`

.

**Link to the challenge:**