Warner Bros. Discovery interview question

How to reverse a string?