Revolut interview question

Most complicated problem that you have to solve