zlabs interview question

Data structures question using hash tables for optimal search