Morgan Stanley interview question

Q: How would you place locks to be threadsafe?