# [Husk], 10 bytes

    ←fS=UḞz:∞ø

[Try it online!][TIO-jgtri4to]

[Husk]: https://github.com/barbuz/Husk
[TIO-jgtri4to]: https://tio.run/##NYlBCsIwEAC/suTsCwQvEUQPoWDjSTysdaUhcQNJqtQHiEdf0Hf07kvsR2IQPA0z03bR5jw9Xud6sfuMw30@PYf3mHPei/pGlKBi4xmWrWksMWgKpkdrxExU1@JbjzHR6f9L1l2w1IMMVE7xTUJnkEEq/buMBdJhY2HlA8UEa7yUpAjTEZ0DhcEwBhSHLw "Husk – Try It Online"