HubSpot interview question

Sorting algorithm, simple, sliding window algorithm.