EPAM Systems Interview Question

Javascript Problem solving in javascript