IBM Interview Question

Two sum algorithm Design somehting similar to twitter