In my case, I want to create a binary tree by taking the depth as the input.
class BTreeNode { BTreeNode left,right; int index;