Ericsson Interview Question

How did you make your code Thread Safe?