JS Interview Prep: Reverse a String