Moovit interview question

Implement a singleton in Java