SAP interview question

Code to extract variable length record from a string