Google interview question

Debug a function, Reverse a String, Explain how I’d store user passwords