Pregunta de entrevista de LINE

Paper test: writing a singleton class (in Java, but I think the language doesn't really matter)