Revolut interview question

How does map collection work in Java?