Adobe interview question

Defining singleton classes in Java & Kotlin.