Lonely Integer problem