WA for all cases

CODELINK->https://ide.codingblocks.com/s/118361
problink->https://online.codingblocks.com/player/27147/content/8097/5367

@S19LPPP0159
You are supposed the no of nodes in the BST instead of its height.

wont size of a tree mean the height rather than number of nodes?

@S19LPPP0159
It means the count of the tree i.e. the no of nodes in the BST rather than its height.