Pregunta de entrevista de Amazon Web Services

1 easy string manipulation question and it's variation with small java questions.