Klaviyo interview question

Some Data manipulation using python