Pergunta de entrevista da empresa Morgan Stanley

one hackerrank question was about arrays and Strings but trciky.