Question d’entretien chez PayPal

Given a code with multithreading, check if it thread-safe. If not, change the code to make it thread safe.