Adeptia Interview Question

Singleton class implemenation and why synchronization is needed