Post History
JavaScript, 42 bytes s=>(g=n=>--n&&s.includes(s%n?g:n)|g(n))(s) Try it online!
Answer
#1: Initial revision
# JavaScript, 42 bytes s=>(g=n=>--n&&s.includes(s%n?g:n)|g(n))(s) [Try it online!](https://tio.run/##RYxLCsJAEAX33sKFoRsnQU1EETpZeQoJzJCfkTiG6YlMwCO4dKmX8yLxg@CmeAWPOqiz4szUrfXP66GkgSmGijTFvq89j4NaZ02XFww80Um10XipQCMC42ALtky7SIRzEUVisQxFuJqlwVG14Ch2UylxZArums@tVA0Xwpruh7@no28pKE9mq7I9gBM9UtyaWltwQavyrc4hRCFJCkfjcQkO34PoF9/1aSKf95vcyOfjKhGHFw)