Assume I'm taking input a string from command line and I want to find the duplicate and unique entries in the string by using Hashtable.

eg:

i/p:

hi hello bye hi good hello name hi day hi

o/p:

Unique elements are: bye, good, name, day

Duplicate elements are: 

hi 3 times

hello 2 times