HCLTech interview question

Duplicates in String Singleton class implementation