Pregunta de entrevista de Texas A&M-Kingsville

How do you solve this problem