Google interview question

- Reverse a string - De-duplicate a string