FIS interview question

write Singleton class