Pregunta de entrevista de Yandex

problem on two pointers, erase all # from string