The second homework for the Java course in SoftUni.