Revolut interview question

Working with random String generators