Mastercard Interview Question

DSA: reverse a string using stack.