Skip to main content
1 of 2
12Me21
  • 6.7k
  • 1
  • 22
  • 40

#SmileBASIC, 57 bytes

DEF D A
WHILE LEN(A)N=SHIFT(A)IF N>=M THEN M=N?N
WEND
END
12Me21
  • 6.7k
  • 1
  • 22
  • 40