Pregunta de entrevista de AVASOFT

basic java code like strings with 4 loops