Maximum length character substring,sliding window

why have we taken till 256 here?

@Vibhuti0206 Because total number of ASCII characters are 256(0 to 255).