Solve Lonely Integer problem.