Pergunta de entrevista da empresa Indeed

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