Pregunta de entrevista de YANDEX

got task to solve with two pointers