Number of digits in numbers from 1 to N
Non recursive BST