IMC Trading interview question

longest substring that is valid password