Did not understand the input fashion
@prathamzx hey Pratham this input is for the generic tree. go through this link generic tree.