1) { $d = $s[$left]; $win[$d]--; $left++; } $ans = max($ans, $right - $left); } return $ans; } }