I solved it.
First sub string--> John
First sub string's hashcode--> 2314539
Second sub string--> 110182
Second sub string's hashcode--> 1449559771
shows size of hashmap 4
******************************
If Key from HashMap equals the dictionary teststring's hashcode then..
MATCHED!! Jane-Test string is two, teststring's hash value is 115276
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
If Key from HashMap equals the dictionary teststring's hashcode then..
MATCHED!! John-Test string is one, teststring's hash value is 110182
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
myWordSet: [two, one, three, five, six, nine]
HashMap: {115276=Jane, 11111=Joe, 110182=John, 22222=Tom}