52.findUniqueNumber

Write a function named findUniqueNumber that receives 1 parameter

  • an Array of numbers where each number appears exactly 2 times, except for one number that appears only once

The function should the number that appears only once.

Example 1

Input

numbers

=

Output

Explanation

Numbers 1 and 2 appear twice. Number 3 appears once, so that's the correct answer.