Klaviyo interview question

Coding Question to be completed in a Jupyter Notebook.