AVASOFT Interview Question

basic java code like strings with 4 loops