EPAM Systems Interview Question

simple coding question something like string problem