Klaviyo interview question

It was a codesignal round with a code that had an API which needed to be optimized.