Mastercard interview question

DSA: reverse a string using stack.