Pregunta de entrevista de Amazon

Two sum, same as no.1 on leetcode