Revolut Interview Question

During live coding I was asked to implement url shortener on python. Also it was important to implement tests.