Pregunta de entrevista de SelfEmployed.com

Two Sum coding question for the technical part