Given an absolute Unix file path, return the simplified canonical path: it starts with a single /, has no trailing slash (unless it is the root), no . or .. segments, and no double slashes.
Input: one line, the path. Output: the canonical path.
/home/
/home
/../
/
You cannot go above the root.
/home//foo/
/home/foo
/a/./b/../../c/
/c
Run your code against the sample tests, or Submit to run the full suite.