Spark-e-gnite interview question

Print the given string in reverse order