Create a function that takes an arr and returns the sum of the numbers between two "1"s.
spaceApart([1, 0, 1, "1", 4, 3, 2, 3, 2, "1"]) ➞ 14
spaceApart(["1", 9, 20, 38, "1"]) ➞ 67
spaceApart([3, 2, 9, "1", 0, 0, -1, "1"]) ➞ "invalid"
"invalid" if:
arr.arr."1" is not 1.