Rizzle Interview Question

Solve Two sum problem in JavaScript