Zuora interview question

given a linux file path, return the simplified path.