Revolut interview question

Live coding: write a URL shortener in java using TDD.