Microsoft interview question

Make erase function for a string. Design a system for tabs