Exostar interview question

DSA question on hashing and time complexity