EPAM Systems interview question

Basic Java OOPS concepts and one easy level DSA problem