Pergunta de entrevista da empresa Josh Technology Group

2. Resultant string after consecutive char deletions. If string is "adcbxd", after deletions the resultant string should be "xd".

Resposta da entrevista

Sigiloso

21 de jan. de 2026

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.