LeetCode 71 Simplify Path solution in c++ and javaScript

Published --