Swiss Re Interview Question

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