Pregunta de entrevista de Garmin

Java programming question about string copy function.