Pregunta de entrevista de Yandex

Many simple algorithmic problems requiring the most efficient solution. For example - normalize unix path