playersplay play ers play play Checking for longest substring Found Length 4 Length 4 Found Appears at both ends of the string The longest substring in the string is: w3resource.com