HELP NEEDED IN "ONE ZERO 2"

What algo or approach should be preferred in this one?@tmwilliamlin

@kishan15 Try to use this property: 2^n > 2^{n-1} + 2^{n-2} + ... + 2^1 + 2^0