EPAM Systems interview question

Testing my knowledge in core java