Pregunta de entrevista de Technicolor

I was given a 100% logic question, no programming involved