Two Sum game implementation with hash table