Pergunta de entrevista da empresa Google

Both the questions were on Strings.