SSTORY: Can someone explain the implementation of the hash table by the setter?

This is the problem setter’s implementation of a hash table. I am fairly new to hash tables, and the only ones I have seen make use of structures for forming the lists. Can someone explain this implementation, which is given in the editorial:
http://www.codechef.com/download/Solutions/2014/March/Tester/SSTORY.cpp