Aon interview question

Coding on the spot using list comprehension