Revolut interview question

Take-home assignment