Amazon Interview Question

(1) Reverse characters (2) Reverse strings