Morgan Stanley Interview Question

Q: How would you place locks to be threadsafe?