Solution to Lonely Integer

The following is the solution to Hacker Rank Problem "Search".
Hacker Rank > Search > Lonely Integer