Pregunta de entrevista de PepsiCo

Implement Two sum problem in javascript