Revolut interview question

Tell me how you would solve this problem