Given a list of folder paths `folder`, remove every folder that lies inside another folder of the list and return the remaining folders in any order. A folder `folder[i]` is a sub-folder of `folder[j]` when it starts with `folder[j]` followed by a `"/"`; for example `"/a/b"` is a sub-folder of `"/a"`, but `"/b"` is not a sub-folder of `"/a/b/c"`. Each path is one or more `"/"` followed by a name of lowercase letters, such as `"/leetcode"` or `"/leetcode/problems"`.
Given a list of folder paths folder, remove every folder that lies inside another folder of the list and return the remaining folders in any order. A folder folder[i] is a sub-folder of folder[j] when it starts with folder[j] followed by a "/"; for example "/a/b" is a sub-folder of "/a", but "/b" is not a sub-folder of "/a/b/c". Each path is one or more "/" followed by a name of lowercase letters, such as "/leetcode" or "/leetcode/problems".