Anonymous Interview Question

DSA question on strings or stacks.