EPAM Systems Interview Question

DSA related to two sum and longest common substring.