EPAM Systems interview question

Memory management