Microsoft Interview Question

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