In generally ,heap is in two forms i.e one is min heap and second one in max heap;
heap always follows complete binary tree;
min heap means parent<=child
max heap means parent>=child
In this question ,they are asking about in which place max element present in min heap(which contains 1023 element);
In min heap ,max element always present in leafs(even if it contains duplicates).
Due to that reason ,0th -level contains 1 element
0th -level contains 1 element
1st -level contains 2elements
2nd -level contains 4elements
...upto 8th level contains 2^0 +2^1+2^2+….+2^8=2^9-1(according to GP formula) which is equal to 511 elements.
remaining elements are 512 elements ,511 comparisions required to compare 512 elements(the elements which are present on the leafs)