Pergunta de entrevista da empresa Nexmo

How would you make this variable thread safe?