Revolut Interview Question

the problem solving case presented above