EPAM Systems interview question

java, hackerank, collection, oop, jvm