Pregunta de entrevista de Siemens

It's a threading question, given even and odd print functions, synchronize them by spawning two threads. I implemented it correctly but the guy thinks there is a deadlock. He doesn't know the concepts.