Pregunta de entrevista de Tesla

Very easy algorithm question and react question.