Revolut Interview Question

How does map collection work in Java?