Domanda di colloquio di S&P Global

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

Risposta di colloquio

Anonimo

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