update solution for Simplify Path