EPAM Systems Interview Question

oops basic concepts