Bit Decode as a part of the weekly challenge