Revolut interview question

Brain teaser