Simplify Unix-Style File Paths

# Introduction In this challenge, we will create a function called `simplifyPath` that accepts a string that represents an absolute Unix-style file path. The function will convert the path to a simplified canonical path that has specific characteristics, such as starting with a slash, containing only one slash between directory names, and not ending with a trailing slash. Moreover, the function will manage cases where the path contains directories, dots, and double slashes.

|60 : 00

Click the virtual machine below to start practicing