Meta Interview Question

71. Simplify path on LeetCode