Amazon interview question

(1) Reverse characters (2) Reverse strings