Checkout.com Interview Question

Live coding on aggregates SQL.