Skip to main content
1 of 2
Josh
  • 49
  • 1

Ruby: 23

 p $<.read.tr("01","10") 
Josh
  • 49
  • 1