Velotio Interview Question

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