EPAM Systems Interview Question

Simple linkedlist task