Klaviyo interview question

doing an assignment