Skip to main content
1 of 3
Shaggy
  • 45k
  • 4
  • 39
  • 95

Japt, 12 bytes

Takes σ as the first input.

à íiUmÔÔ øV 

Try it

Shaggy
  • 45k
  • 4
  • 39
  • 95