Apple interview question

- Reverse a string - SQL window function