Velotio interview question

Create a tree structure which should expand when user clicks on the node.