Pergunta de entrevista da empresa Revolut

How to perform the concurrent updates of an array by multiple threads.