Dual Singleton Detection - Coding problem | OneNoughtOne