EPAM Systems Interview Question

Javascript multiple functions as arguments, grouping based on some keys.