Trust Wallet interview question

How can we ensure concurrency with a hashmap