Revolut Interview Question

How did you approach the problem?