Nagarro interview question

Best way to implement Singleton?