DataWeave interview question

reverse a string and sorts