Pregunta de entrevista de Odeon Software & Technology

How to solve a race condition without using locks?