Adeptia interview question

Singleton class implemenation and why synchronization is needed