Indeed interview question

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