PepsiCo Interview Question

Implement Two sum problem in javascript