Update 01_no_repeats_spec.rb

My answer in Python language.