Meta interview question

A problem similar to longest substring