Pregunta de entrevista de Amazon

Two sum first Question on the Leet Code