Pergunta de entrevista da empresa Meta Company

some coding questions, questions about multithreading.