PepsiCo interview question

Implement Two sum problem in javascript