Revolut interview question

Write a tinyURL from scratch - TDD approach