Whenever you're ready, walk me through how you'd approach this.
Describe a time you handled a race condition in your code, including what you observed, how you diagnosed it, and what you changed to prevent it.