IBM interview question

TwoSum, design a data structure.