S&P Global interview question

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

Interview Answer

Anonymous

14 Aug 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().