We shrink and grow the window based on the conditions
left = 0
for right in range(len(arr)):
# logic while grown phase
if/while <shrink condition>:
# logic while shrink phase
We shrink and grow the window based on the conditions
left = 0
for right in range(len(arr)):
# logic while grown phase
if/while <shrink condition>:
# logic while shrink phase