IBM interview question

Two sum algorithm Design somehting similar to twitter