Medium
Given an absolute Unix-style path path, return its simplified canonical path. Handle . (current), .. (parent), and redundant slashes.
Input: path = "/home/" Output: "/home"
Input: path = "/../" Output: "/"
Input: path = "/a/./b/../../c/" Output: "/c"