HP Inc. interview question

explain how to prevent race condition