Account code tree
Create a method that given the input generates the output.
# Input
```
/a/b/c
/a/x
/a/b/d
/a/b/c/c1
```
# Output
A data structure representing the logical tree
```
a
/ \
b x
/\
d c
\
c1
{
a: {
id: a
childIds: [b, x]
},
b: {
id: b,
childIds: [c, d]
}
}
```
function createTree(string) {
const tree = {};
}