Update 20-num-repeats.rb

The method parameter is a string not array as shown by the tests.