update repeated_substring.py