SurveyMonkey Interview Question

Q: How to solve locking issue when multiple thread calling the same API