Two Sum III - Data structure design(LeetCode 170):

Problem