EPAM Systems Interview Question

Implement thread safe singleton pattern, review sql query