Swiss Re interview question

basic python - reverse string data preprocessing - how to extract and label the data