EPAM Systems Interview Question

Leet Code easy task was assigned