Pregunta de entrevista de Meta Company

some coding questions, questions about multithreading.