Pergunta de entrevista da empresa Robinhood

Write a pure thread safe array in swift