Pregunta de entrevista de CameraMatics

What is a race condition? How would you solve it?