Nebius interview question

Sliding window algo question with left , right pointer moving and set usage