EPAM Systems Interview Question

How do promises work? What is it flex and how it works