Amazon Interview Question

1. reverse a string