EPAM Systems Interview Question

list comprehension python with a if condition