Pregunta de entrevista de S&P Global

How do you reverse a string ? This question was asked in first round.

Respuesta de la entrevista

Anónimo

14 ago 2024

I actually said I would do it using empty string and traversing from last. But the interviewer expected to use the StringBuilder because it has the direct method reverse().