Regarding Tree left view

https://hack.codingblocks.com/contests/c/587/951
Please tell how to convert the input of level to generate a tree

@kushagrapathak0987 you have to make a function you can refer this