IBM Interview Question

TwoSum, design a data structure.