Bounteous x Accolite interview question

Singleton code , core java, spring boot, microservice