SAP interview question

longest substring in a string