AppsFlyer Interview Question

Write a singleton. Make it Thread-safe.