It is the second task of the Java course at EPAM