Pergunta de entrevista da empresa AVASOFT

basic java code like strings with 4 loops