Yandex interview question

problem on two pointers, erase all # from string