Pregunta de entrevista de Oregon State University

Given this technical problem, how would you solve it.