Option D is correct
some of best answer is present in other comments but i’ll give you visula for this question
suppose there where 8 elements in X ={2,4,8,16,32,64,128,256} n=8
Sample space S has probability ½ this means 1 in any 2 element is chosen size of sample space will be n/2 and then middle elements will be chosen
{2,4,8,16,32,64,128,256}
min(8,16,32,64)=8
n=8 hence expected value is n