Altimetrik Interview Question

Javascript - Two sum problem