Pergunta de entrevista da empresa Garmin

Java programming question about string copy function.