Nebius Interview Question

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