Aon Interview Question

Coding on the spot using list comprehension