SpaceX interview question

SQL query involving running totals