How A can be 15


#1

As per the theory of catalan number of distinct BST will be given by 2nCn/(n+1)
for n = 15 it is going beyond 32 integer bit range and same for the memory limit