Redfin Interview Question

2 Sum problem