Zuora Interview Question

given a linux file path, return the simplified path.