Pergunta de entrevista da empresa American Express

What happens when 2 threads try to modify an ArrayList?