Revolut Interview Question

Please solve this following problem