Pergunta de entrevista da empresa Yandex

Find longest monotonic subarray Find number of substring that contain only distinct characters