Answer: – We can store such tree in HashMap with key-value pair and each. Where key and value are TreeNode. And each TreeNode is having actual data as payload member and as well as it is also maintaining association details with parent and child nodes.