Pergunta de entrevista da empresa Indeed

Reverse a string keeping html text like ">" unchanged.