Revolut Interview Question

Implement a URL shortener. General questions about how a HashMap works.