HCLTech interview question

string buffer, hash table collision solution