Blip (Portugal) interview question

How can I make a class thread-safe?