Adding solution to the lonely integer problem on Hacker Rank