Pergunta de entrevista da empresa Odeon Software & Technology

How to solve a race condition without using locks?