EPAM Systems interview question

On the technical interview there was simple algorithmic task.