Ok, Let first move occur when elements equivalent to 2^(k-1)
Second move occur when left elements equivalent to 2^(k - 2)
Any jth move will occur when left elements equivalent to 2^(k - j)
Hence total number of moves will be k , and
and cost of jth move at any time will be 2^j
total cost : 2^0 + 2^1 + 2^2 ..... 2 ^ (k -1 ) = 2^k - 1
which is almost N ( N = 2^k )
Hence theta(N) complexity , correct answer will be A.