2. Resultant string after consecutive char deletions. If string is "adcbxd", after deletions the resultant string should be "xd".
Sigiloso
Aprroach: Stack: If we see the element is matching top of the stack then pop, otherwise push to the stack. Empty the stack and return the reversed string. I answered this question correctly. Unfortunately I couldn't think of Q1 properly.