EPAM Systems interview question

There were 3 programming problems to solve in Java.