Capital One Interview Question

One of the algos was 2sum