• Longest substring requirement

Question related to mission Double Substring


It is not immediately clear that the task is to return the length of the longest substring, since the longest requirement is mentioned only in the example. One may return the length of the substring that occurs the most (for 'aghtfghkofgh' it is len('gh') = 2).

Not a big deal though.