[UPDATED: Oct 14, 05:47 AM Central Time]
Hi Employer!
I have read your requirement and I found 2 problems here:
1. int cannot contain a number that greater than 2,147,483,647 --> i recommend use long.
2. what happens if there are more duplicated H(x)? what is the rule? (insert them on the lowest one?) --> I have found the solution based on the output.
I am good at Java and I am building reviews, hope I have a chance to work for you!
[Updated Content]
I have done this one, We can make a deal immediately.
Best Regards,
Ryan Nguyen.