Leetcode Double Hashing Program