EPAM Systems interview question

Coding Excercise#3 demonstrate why optional is better for null handling.