Given an absolute path for a file (Unix-style), simplify it.
path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c"
Credits To: leetcode.com
Leave me comments, if you have better ways to solve.
## Blog link: https://code.dennyzhang.com/simplify-path