Revolut Interview Question

Most complicated problem that you have to solve