it is mentioned that there will not be more than 2 children but in the constraints , the value of k is from 1 to 10.
@kodivine0 hey do this question by taking generic tree not binary tree as there is misprinting.