Leoforce interview question

reverse a string using a stack