EPAM Systems interview question

oops basic concepts