Revolut Interview Question

Python structures