With 1023 elements the min height of a tree can be = floor(log1023) i.e 9.
here Depth and height have direct correlation max depth possible=max height
we can construct a tree such that all integers below 9 fall on one side and can preserve max-heap property as well.
now how many elements which are less than 9 are there so that you can construct such tree?
Integers less than 9 are 8. so at every level we use one integer to place 9 as far as possible from root so that we can get max depth.
so 8 such integers are there hence answer is 8.
Had they given something like this [0,1023] then max depth =9.
I know this answer requires lot of intuition , im sorry if this is not clear.