Pregunta de entrevista de Rizzle

Solve Two sum problem in JavaScript