Visualize
main.py
s = input().strip() m = 0 w = "" for i in s: if i in w: while i in w: w = w[1:] w = w + i if len(w) > m: m = len(w) print(m)
Output