Indeed Interview Question

reverse a string. Then, the follow up is to reverse the string with html entity, but keep html entity not reversed