You are given an absolute Unix-style path that starts with a slash. Return its simplified canonical form. A single period . means the current directory, a double period .. moves up to the parent directory, and several consecutive slashes count as one. Any other name, including names made only of periods such as ..., is a regular directory name.
The canonical path starts with one slash, separates directory names with exactly one slash, does not end with a slash (unless it is the root /), and contains no . or .. parts.