Update repeatedsubstring.rb

100% working!