Let us consider two cases:
In this case, no matter which number $$$x$$$ we choose, the array will contain an even number of its submasks. Therefore, the answer is -1.
Let $$$x$$$ be the smallest such number. Note that if $$$y$$$ is a submask of $$$x$$$, then $$$y \le x$$$. All numbers smaller than $$$x$$$ appear an even number of times, and the number $$$x$$$ itself appears an odd number of times. Thus, $$$x$$$ is a valid solution.