Hashtable doubts

Why ans%=Ts unable to understand it
???

please provide some reference to the question.