Scivantage interview question

Linux commend line, how to reverse a string