Pregunta de entrevista de Nexmo

How would you make this variable thread safe?