Bit Array Hackerrank Solution For Python Code