Pregunta de entrevista de NVIDIA

Coding question on string manipulation and stack