Skip to main content
2 of 11
edited body
ElPedro
  • 6.5k
  • 2
  • 24
  • 38

Pyth, 21 bytes

AQFNcH)IqG:N0lG:NlGlN

Try it online!

I'm sure this could use some serious golfing but as a Pyth beginner, just getting it to work was a bonus.

ElPedro
  • 6.5k
  • 2
  • 24
  • 38