@Shaik Masthan Sir, Can we do like this
number of nodes will be 1,2,4,8,... at each level
now count them it will be 2^n-1
now check for what value of n it will result in >=256
for n=8 it is 255
for n=9 it is >=256
so the height of the tree will be 9.