Bit Array Hackerrank Solution For Python Example