Pergunta de entrevista da empresa Best Buy

Some questions about synchronization when accessing a variable being incremented by multiple threads.