Simplify Path Python&CPP accepted