EPAM Systems Interview Question

Coding round - string manipulations.