Zscaler interview question

Deadlock, Memory Management coding on string and hashmap