Add solution to 'Repeated substring'