Graas. interview question

Star Pattern Coding Question , Revesre String