Revolut Interview Question

Solve our take-away challenge