Pregunta de entrevista de AT&T

How do you reverse a string? What would you do if ___ ? (standard hr questions)