Pregunta de entrevista de Sanmina

Really it was straight forward not to difficult