SAP Interview Question

longest substring in a string