N26 interview question

Python generic coding question