TLE while operator overloading

My code is running perfectly fine for the items already present in the hashtable but showling if i enter any new data in to the table by operator overloading .