Yandex Interview Question

problem on two pointers, erase all # from string