EPAM Systems Interview Question

javascript currying and higher order functions