Distinct BST Formations - Coding problem | OneNoughtOne