HashedIn by Deloitte interview question

Mainly about data structures