AVASOFT interview question

basic java code like strings with 4 loops